import request from '@/utils/request'


//获取分类级别
export function getCategorylevel(data) {
	return request({
		url: "/admin/getDictType",
		data,
	});
}

//获取分类l列表*(size:10)
export function getCategoryList(data) {
	return request({
		url: "/product/getProductCategoryList",
		data,
	});
}

//获取分类l列表2*(size:10000)
export function getAllCategoryList(data) {
	return request({
		url: "/product/getProductCategoryList",
		data,
	});
}

//删除分类列表
export function delCategoryList(data) {
	return request({
		url: "/product/delProductCategory",
		data,
	});
}

//新增分类
export function addCategory(data) {
	return request({
		url: "/product/addProductCategory",
		data,
	});
}

//修改分类
export function editCategory(data) {
	return request({
		url: "/product/updateProductCategory",
		data,
	});
}